package com.example.shardingjdbc.controller;

import com.example.shardingjdbc.entity.ScadaHistory;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;
import java.util.List;

@Slf4j
public class ResultData {
    private int total;
    private Date startDate;
    private Date endDate;
    private String heatUnitId;
    private List data;

    // Getter and Setter for startDate
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    // Getter and Setter for endDate
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    // Getter and Setter for heatUnitId
    public String getHeatUnitId() {
        return heatUnitId;
    }

    public void setHeatUnitId(String heatUnitId) {
        this.heatUnitId = heatUnitId;
    }

    // 原有方法
    public void setData(List scadaHistories) {
        this.data = scadaHistories;
    }

    public void setTotal(int size) {
        this.total = size;
    }

    public List getData() {
        return data;
    }

    public int getTotal() {
        return total;
    }
}
